package com.min.star.model;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("sys_student")
public class Student extends BaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
	
	@TableField("student_name")
	@NotBlank(message= "{student.studentName.required}")
	private String studentName;

	@TableField("student_sex")
	private String studentSex;
	
	@TableField("student_grade")
	@NotBlank(message="{student.studentGrade.required}")
	private String studentGrade;
	
	@TableField("student_clazz")
	@NotBlank(message="{student.studentClazz.required}")
	private String studentClazz;
	
	@TableField("student_phone")
	private String studentPhone;
	
	@TableField("student_pass")
	private String studentPass;

	@TableField("status")
	private String status;
	
	public Student() {
		super();
	}

	public Student(Long id, String studentPass) {
		super();
		this.id = id;
		this.studentPass = studentPass;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStudentSex() {
		return studentSex;
	}

	public void setStudentSex(String studentSex) {
		this.studentSex = studentSex;
	}

	public String getStudentGrade() {
		return studentGrade;
	}

	public void setStudentGrade(String studentGrade) {
		this.studentGrade = studentGrade;
	}

	public String getStudentClazz() {
		return studentClazz;
	}

	public void setStudentClazz(String studentClazz) {
		this.studentClazz = studentClazz;
	}

	public String getStudentPhone() {
		return studentPhone;
	}

	public void setStudentPhone(String studentPhone) {
		this.studentPhone = studentPhone;
	}

	public String getStudentPass() {
		return studentPass;
	}

	public void setStudentPass(String studentPass) {
		this.studentPass = studentPass;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", studentName=" + studentName + ", studentSex=" + studentSex + ", studentGrade="
				+ studentGrade + ", studentClazz=" + studentClazz + ", studentPhone=" + studentPhone + ", studentPass="
				+ studentPass + ", status=" + status + "]";
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
